<template>
    <RadioGroup @on-change="handleChange">
        <Radio label="1">通过</Radio>
        <Radio label="3">不通过</Radio>
    </RadioGroup>
</template>

<script>
    export default {
        name: "RadioComponent",
        data () {
            return {
                // state:on-change()
            }
        },
        props: {
            bId: {
                default: '1'
            }
        },
        mounted(){
          console.log(this.bId)
        },
        methods: {
            handleChange(val){
                // console.log(val)
                let obj = {
                    status: val,
                    bId: this.bId
                }
                this.$emit('getVal', obj)
            }
        }
    }
</script>

<style scoped>

</style>